package com.ican.domain.rule;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.ican.domain.common.BaseEntity;

@Entity
@Table(name="t_rule_website")
public class WebsiteRule extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    private String url;
    private String name;
    private String description;

    private Integer scanNum = 0;
    private Integer scanNumNo = 0;
    private Integer scanNumFail = 0;

    private List<CategoryRule> categorys;
    private List<ParseRule> rules;
    
    @Column(name="url")
    public String getUrl() {
        return url;
    }
    public void setUrl(String url) {
        this.url = url;
    }
    @Column(name="name")
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    @Column(name="description")
    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }

    @Column(name="scan_num")
    public Integer getScanNum() {
        return scanNum;
    }
    public void setScanNum(Integer scanNum) {
        this.scanNum = scanNum;
    }
    @Column(name="scan_num_no")
    public Integer getScanNumNo() {
        return scanNumNo;
    }
    public void setScanNumNo(Integer scanNumNo) {
        this.scanNumNo = scanNumNo;
    }
    @Column(name="scan_num_fail")
    public Integer getScanNumFail() {
        return scanNumFail;
    }
    public void setScanNumFail(Integer scanNumFail) {
        this.scanNumFail = scanNumFail;
    }

    @Transient
    public List<CategoryRule> getCategorys() {
        return categorys;
    }
    public void setCategorys(List<CategoryRule> categorys) {
        this.categorys = categorys;
    }
    @Transient
    public List<ParseRule> getRules() {
        return rules;
    }
    public void setRules(List<ParseRule> rules) {
        this.rules = rules;
    }
}
